package com.sky.blog.test.mapper;

import com.sky.blog.dao.mapper.PostsMapper;
import com.sky.blog.dao.pojo.Posts;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

/**
 * @author sky  2022/3/24
 * @version 1.0
 */
@SpringBootTest
public class testVersion {

    @Resource
    private PostsMapper postsMapper;

    @Test
    void testModified() {
        Posts posts = new Posts();
        posts.setTitle("大聪明123");
        posts.setId(1507024759047704578L);
        int insert = postsMapper.updateById(posts);
        System.out.println(insert);
    }
}
